package com.atguigu.day13.teacher.in4;

public interface Fly {
    void flying();
}

class Bird implements Fly {
    @Override
    public void flying() {
        System.out.println("小鸟 忽闪忽闪 飞.....");
    }
}

abstract class Animal {
    public abstract void eat();
    public abstract void sleep();
}
class Cat extends Animal{
    @Override
    public void eat() {
        System.out.println("小猫爱吃鱼");
    }
    @Override
    public void sleep() {
        System.out.println("小猫爱睡觉...");
    }
}